@layout('layout2')

@section('page-functions')
<h2>{{ __('title.collection') }}</h2>
<form id="collection-selecting-form" action="{{ URI::current() }}" method="get">
    <div class="control-group">
        <label for="collection">{{ __('label.collection.select') }}</label>
        <div class="controls">
            <select name="collection" id="collection">

            </select>
        </div>
    </div>
</form>

<div id="max-line">
    <script type="text/template" id="max-line-inner-template">
        <div class="first">
            <span class="label" id="ml-go-f" data-cell="c-f-<%= fCell %>">{{ __('label.first-num') }}</span>
            <span class="value"><%= fMax %></span>
        </div>
        <div class="last">
            <span class="label" id="ml-go-l" data-cell="c-l-<%= lCell %>">{{ __('label.last-num') }}</span>
            <span class="value"><%= lMax %></span>
        </div>
    </script>
    <h3>{{ __('title.maxline') }}</h3>
    <div id="max-line-inner">

    </div>
</div>
@endsection

@section('page-content')
    @if (!Auth::user()->isSelectedChannel())
        <div class="errors">
            <h3>{{ __('m.error.not-selected-channel') }}</h3>
        </div>
    @else
        @include('pages.data-table')
        {{ HTML::script('js/home.js') }}
    @endif
@endsection